import request from '@/utils/request'

// 下载文件
export function downloadById(data) {
  return request({
    url: '/shengHeFile/downloadById/flow',
    method: 'post',
    params: data,
    responseType: 'blob'
  })
}

// 删除
export function deleteFile(data) {
  return request({
    url: '/shengHeFile/deleteFile',
    method: 'post',
    params: data
  })
}

export function getFileList(paran) {
  return request({
    url: '/shengHeFile/getFileList',
    method: 'get',
    params: paran
  })
}
export function save(data) {
  return request({
    url: '/shengHeFile/saveData',
    method: 'post',
    data
  })
}
export function updateStatus(paran) {
  return request({
    url: '/shengHeFile/updateStatus',
    method: 'get',
    params: paran
  })
}
